 
<!DOCTYPE html> 
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			 function del(){
				 var $uid=uid.value;
				 xhr=new XMLHttpRequest();
				 xhr.onreadystatechange=function(){
					 if(xhr.readyState==4 && xhr.status==200){
						 var r=xhr.responseText;
						
						 /*if(r==1){
							   alert("删除成功");
							 // location.href="http://127.0.0.1:8080/_v1list.html";
						 }else{
							    alert("删除失败");
								//location.href="http://127.0.0.1:8080/_v1list.html";
						 }*/
					 }
				 }
				xhr.open('delete',`/pro1/v1/del/${$uid}`,true);
				 xhr.send();
			 }
		</script>
	</head>
	<body>
		<input type="text" id="uid">
		<button onclick="del()">删除</button>
		<div id="d1">
			
		</div>
	</body>
</html>

